package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.product.ProductDto;
import com.atguigu.spzx.model.entity.product.Product;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: Mouoal
 * @CreateTime: 2024-12-13  23:25
 * @Version: 1.0
 */
public interface ProductService {

    PageInfo<Product> findByPage(Integer page, Integer limit, ProductDto productDto);

    @Transactional
    void save(Product product);

    Product getById(Long id);

    @Transactional
    void updateById(Product product);

    @Transactional
    void deleteById(Long id);

    void updateAuditStatus(Long id, Integer auditStatus);

    void updateStatus(Long id, Integer status);
}
